package com.zh.streamdemo.demo1;

import java.util.stream.Stream;

public class DemoLimit {

    public static void main(String[] args) {
        Stream.of("java", ".net", "python", "php", "c++").limit(2).forEach(System.out::println);
    }
}
